# 方法一
saving = 0
money_list = []
money_per_week=int(input())
increase_money=money_per_week
print("你第一周要存{}元".format(money_per_week))
for num_week in range(52):
   money_list.append(money_per_week)
   saving = sum(money_list)
   money_per_week += increase_money
   num_week += 1
print('一年共存款{}元'.format( saving))
# 方法二
money=range(10,530,10)
save=0
for n in money:
     save=save+n
print("一年共存款:{}元".format(save))
# 方法三
a = 0
for m in range(10,530,10):
   a =a+m
print("一年一共存款：{}元", +a)
# 方法四
a =0
s= int(input())
for m in range(s,53*s,s):
   a =a+m
print("一年一共存款：{}元".format(a))